package edu.sctu.practice.class01.liangyuxiang.assign03.test1;

/**
 * Created by 梁玉翔 on 2015/10/22.
 */
public class Circle extends GeometricObject {

    double radius;
    double area;
    double perimeter;

    public Circle(String color, double radius) {
        super(color);
        this.radius = radius;
    }

    @Override
    public double findArea() {
        area = radius*radius*PI;
        return area;
    }

    @Override
    public double findPerimeter() {
        perimeter = 2*PI*radius;
        return perimeter;
    }
}
